projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0ecca02
)
(x_new_font): Follow the change in x_set_scroll_bar_width and make the
author
Richard M. Stallman
<rms@gnu.org>
Mon, 28 Jul 1997 18:33:11 +0000
(18:33 +0000)
committer
Richard M. Stallman
<rms@gnu.org>
Mon, 28 Jul 1997 18:33:11 +0000
(18:33 +0000)
scroll bar at least 14 pixels wide.
src/xterm.c
patch
|
blob
|
history
diff --git
a/src/xterm.c
b/src/xterm.c
index cc29cf915a7837f4e43827e29d3dcce18a492bd3..62ea22abeee20869d196fae346e5ef2afe0fc1f9 100644
(file)
--- a/
src/xterm.c
+++ b/
src/xterm.c
@@
-5289,7
+5289,10
@@
x_new_font (f, fontname)
f->scroll_bar_cols = (f->scroll_bar_pixel_width + wid-1) / wid;
}
else
- f->scroll_bar_cols = 2;
+ {
+ int wid = FONT_WIDTH (f->output_data.x->font);
+ f->scroll_bar_cols = (14 + wid - 1) / wid;
+ }
/* Now make the frame display the given font. */
if (FRAME_X_WINDOW (f) != 0)